package param

type Param struct {
    Page int `json:"page"`
    PerPage int `json:"per_page"`
}

type FollowerParam struct {
    Param
}

type ListArticlesParam struct {
    Page int `json:"page"`
    PerPage int `json:"per_page"`
    Status int `json:"status"`
    ChannelID int `json:"channel_id"`
    PublishStart string `json:"publish_start"`
    PublishEnd string `json:"publish_end"`
}

type CreateCommentParam struct {
    Target int `json:"target,omitempty" validate:"omitempty" label:"评论id"`
    Content string `json:"content,omitempty" validate:"required,omitempty" label:"评论内容"`
    ArticleID int `json:"art_id,omitempty" validate:"required,omitempty" label:"文章id"`
}